import request from '@/utils/request.js'

// 油品列表
export const getOilList = () => {
    return request({
        url: '/oils/list',
        method: 'GET',
    })
}

// 油品新增或编辑
export const editOil = (data) => {
    return request({
        url: '/oils/save',
        method: 'POST',
        data
    })
}

// 油品删除
export const deleteOil = (data) => {
    return request({
        url: '/oils/action',
        method: 'DELETE',
        data
    })
}
